package com.cangsan.erhai.common;

import com.alibaba.fastjson.JSONObject;

public class PageBean {
    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getStart() {
        return (pageNum-1)*pageSize;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public JSONObject getParam() {
        return param;
    }

    public void setParam(JSONObject param) {
        this.param = param;
    }

    public JSONObject param;

    private Integer pageNum;//第几页
    private Integer pageSize;//每页记录
    private Integer start;//起始于
    private String query;//查询条件

    public PageBean() {

    }

    public PageBean(Integer pageNum, Integer pageSize, String query) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.query = query;
    }

    public PageBean(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
}
